package com.yxkj.syh.app.huarong.activities.user.setting;

import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.gyf.immersionbar.ImmersionBar;
import com.syh.app.basic.base.BaseActivity;
import com.yxkj.syh.app.huarong.BR;
import com.yxkj.syh.app.huarong.R;
import com.yxkj.syh.app.huarong.activities.user.UserFragment;
import com.yxkj.syh.app.huarong.constants.ArouterPath;
import com.yxkj.syh.app.huarong.databinding.ActivitySettingBinding;

/**
 * 设置
 */
@Route(path = ArouterPath.SETTING_ACTIVITY)
public class SettingActivity extends BaseActivity<ActivitySettingBinding, SettingVM> {

    private UserFragment mUserFragment;

    @Override
    protected int getContentLayout() {
        return R.layout.activity_setting;
    }

    @Override
    protected boolean needImmersionBarInit() {
        ImmersionBar.with(this).init();
        return false;
    }

    @Override
    protected int getViewModelId() {
        return BR.settingVM;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        mUserFragment = UserFragment.newInstance();
        getSupportFragmentManager().beginTransaction().replace(R.id.flContent,mUserFragment).commit();
    }

    @Override
    protected void initObservers() {
        super.initObservers();

    }
}
